@echo off
echo 设置Visual Studio Build Tools环境...

:: 设置Visual Studio 2019 Build Tools环境
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x64

echo.
echo 验证编译器可用性...
cl 2>nul
if %errorlevel% neq 0 (
    echo 错误：编译器设置失败
    pause
    exit /b 1
)
echo 编译器设置成功！

echo.
echo 安装Cython...
pip install cython

echo.
echo 编译Cython模块...
python build_cython.py

echo.
echo 完成！
pause 